package cn.appsys.dao.deve.appinfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.appsys.pojo.AppInfo;

public interface DeveAppInfoMapper {
	
	//删除版本
	int deleteAppInfoById(@Param(value="id")Integer delId);
	
	//分页查询时,每页显示的数据行数
	List<AppInfo>  findAppInfoPage(
			@Param("querySoftwareName")String querySoftwareName,
			@Param("queryStatus")Integer queryStatus,
			@Param("queryFlatformId")Integer queryFlatformId,
			@Param("queryCategoryLevel1")Integer queryCategoryLevel1,
			@Param("queryCategoryLevel2")Integer queryCategoryLevel2,
			@Param("queryCategoryLevel3")Integer queryCategoryLevel3,
			@Param("from")Integer from,
			@Param("pageSize")Integer pageSize);

	
	//按照条件查询App信息中的总记录数
	int getTotalCount(
			@Param("querySoftwareName")String querySoftwareName,
			@Param("queryStatus")Integer queryStatus,
			@Param("queryFlatformId")Integer queryFlatformId,
			@Param("queryCategoryLevel1")Integer queryCategoryLevel1,
			@Param("queryCategoryLevel2")Integer queryCategoryLevel2,
			@Param("queryCategoryLevel3")Integer queryCategoryLevel3);
	
	//通过Apk名称查询apk详情信息
	AppInfo querAppByApkName(String apkName);
	
	//新增
	int addSave(AppInfo appInfo);
	
	//通过app信息id查询详细对象信息
	AppInfo queryById(Integer id);
	
	//实现将app_info中的logoPicPath和logoLocPath两个列的值给清空
	int updateEmptyLogPath(Integer id);
	
	//修改app信息
	int updateAppInfo(AppInfo appInfo);

/*	@RequestMapping("/list")
	public String list(
			@RequestParam(value= "querySoftwareName",required=false)String querySoftwareName,
			@RequestParam(value= "queryStatus",required=false)Integer queryStatus,
			@RequestParam(value= "queryFlatformId",required=false)Integer queryFlatformId,
			@RequestParam(value= "queryCategoryLevel1",required=false)Integer queryCategoryLevel1,
			@RequestParam(value= "queryCategoryLevel2",required=false)Integer queryCategoryLevel2,
			@RequestParam(value= "queryCategoryLevel3",required=false)Integer queryCategoryLevel3,
			@RequestParam(value= "currPageNo",required=false)Integer currPageNo,
			Model model){
		
	}*/
}

